import 'dart:convert';

import 'package:enterprise_v6_app/generated/json/base/json_field.dart';
import 'package:enterprise_v6_app/generated/json/base_danger_investigation_info_entity.g.dart';
export 'package:enterprise_v6_app/generated/json/base_danger_investigation_info_entity.g.dart';

/// 隐患治理详情实体
@JsonSerializable()
class BaseDangerInvestigationInfoEntity {
  BaseDangerInvestigationInfoEntity();

  factory BaseDangerInvestigationInfoEntity.fromJson(Map<String, dynamic> json) => $BaseDangerInvestigationInfoEntityFromJson(json);

  ///	验收情况描述
  String? checkAcceptComment = '';

  ///	隐患验收图片[数组]
  List<String>? checkAcceptImages = [];

  ///	验收人姓名
  String? checkAcceptPerson = '';

  ///	验收时间
  String? checkAcceptTime = '';

  ///	验收人用户ID
  String? checkAcceptUserId = '';

  ///	验收人电话
  String? checkAcceptUserPhone = '';

  ///	隐患确认人
  String? confirmBy = '';

  ///	隐患确认时间
  String? confirmDate = '';

  ///	隐患确认人ID
  String? confirmUserId = '';

  ///	隐患确认人电话
  String? confirmUserPhone = '';

  ///	管控措施
  String? controlMeasures = '';

  ///	单位（万元）
  String? cost = '';

  ///	当前风险等级：1_重大2_较大3_一般4_低
  String? currentRiskLevel = '';

  ///	初始风险等级：1_重大2_较大3_一般4_低
  String? initialRiskLevel = '';

  ///	隐患描述(确认人)
  String? dangerDesc = '';

  ///	隐患上报图片集合[数组]
  List<String>? dangerImages = [];

  ///	隐患等级名称
  String? dangerLevel = '';

  ///	隐患等级字典ID
  String? dangerLevelDicId = '';

  ///	隐患治理期限
  String? dangerManageDeadline = '';

  ///	隐患治理类型
  String? dangerManageType = '';

  ///	隐患治理类型字典ID
  String? dangerManageTypeDicId = '';

  ///	隐患名称
  String? dangerName = '';

  ///	原因分析
  String? dangerReason = '';

  ///	隐患排查描述(上报人)
  String? dangerRecordDesc = '';

  /// 隐患来源名称
  String? dangerSrc = '';

  ///	隐患来源字典ID
  String? dangerSrcDicId = '';

  ///	隐患状态（待确认：-1；待整改：0；待验收：1；已验收：9；驳回：10）
  String? dangerState = '';

  ///	隐患上报视频集合[数组]
  List<String>? dangerVideo = [];

  ///	隐患上报语音集合[数组]
  List<String>? dangerVoice = [];

  ///	隐患类别名称
  String? hazardCategory = '';

  /// 隐患类别字典ID
  String? hazardCategoryDicId = '';

  ///	隐患类型名称
  String? hazardDangerType = '';

  ///	隐患类型字典ID
  String? hazardDangerTypeDicId = '';

  ///	责任部门：风险分析对象所属部门名称
  String? hazardDep = '';

  ///	责任人：风险分析对象所属部门负责人姓名
  String? hazardLiablePerson = '';

  ///	主键ID
  String? id = '';

  ///	初始风险后果
  int? initialRiskConsequences = 0;

  ///	初始风险度
  int? initialRiskDegree = 0;

  ///	初始风险可能性
  int? initialRiskPossibility = 0;

  ///	整改时间
  String? liableDate = '';

  ///	整改描述
  String? liableDesc = '';

  ///	隐患整改图片[数组]
  List<String>? liableImages = [];

  ///	整改责任人
  String? liablePerson = '';

  ///	整改责任人用户ID
  String? liableUserId = '';

  ///	隐患整改人电话
  String? liableUserPhone = '';

  /// 隐患登记时间
  String? registTime = '';

  ///	登记人姓名
  String? registrant = '';

  ///	隐患登记人ID
  String? registrantUserId = '';

  ///	隐患登记人电话
  String? registrantUserPhone = '';

  ///	风险描述
  String? riskDescription = '';

  ///	风险事件名称
  String? riskEventName = '';

  ///	管控措施描述
  String? riskMeasureDesc = '';

  ///	风险分析对象名称
  String? riskObjectName = '';

  /// 风险分析对象ID
  String? riskObjectId = '';

  ///	风险分析单元名称
  String? riskUnitName = '';

  ///	隐患排查内容
  String? troubleshootContent = '';

  Map<String, dynamic> toJson() => $BaseDangerInvestigationInfoEntityToJson(this);

  @override
  String toString() {
    return jsonEncode(this);
  }
}
